prepare("select * from stock_prices where item_name = '$names'") ; $chk->execute(); if($chk->rowcount() > 0) { $msg = $names ."-This Item price has been Fixed before. " ; } else { if($user->regprice($cat,$names,$price,$adm)) { $msg = $names.'-'."Price Fixed" ; } } } ?>